package com.ruoyi.caiwu.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 凭证管理对象 accounting_voucher
 *
 * @author ruoyi
 * @date 2025-02-25
 */
public class AccountingVoucher extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 凭证id */
    private Long voucherId;

    /** 凭证编号 */
    @Excel(name = "凭证编号")
    private String voucherNumber;

    /** 凭证日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "凭证日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date voucherDate;

    /** 关联的账套id */
    @Excel(name = "关联的账套id")
    private Long accountId;

    private Long subjectId;

    /** 凭证摘要 */
    @Excel(name = "凭证摘要")
    private String summary;
    /** 审核状态 */
    @Excel(name = "审核状态")
    private Long state;

    /** 红冲状态 */
    @Excel(name = "红冲状态")
    private Long status;

    /** 制单人  */
    @Excel(name = "制单人 ")
    private Long preparerId;

    /** 审核人 */
    @Excel(name = "审核人")
    private Long reviewerId;
    @Excel(name = "审核人员")
    private String remark;
    /** 过账人 */
    @Excel(name = "过账人")
    private Long posterId;

    /** 借方金额 */
    @Excel(name = "借方金额")
    private BigDecimal debitAmount;

    /** 贷方金额 */
    @Excel(name = "贷方金额")
    private BigDecimal creditAmount;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;
    public String getRemark() {
        return remark;
    }
    public void setRemark(String remark) {
        this.remark = remark;
    }
    public Long getState() {
        return state;
    }
    public void setState(Long state) {
        this.state = state;
    }
    public void setVoucherId(Long voucherId)
    {
        this.voucherId = voucherId;
    }

    public Long getVoucherId()
    {
        return voucherId;
    }
    public void setVoucherNumber(String voucherNumber)
    {
        this.voucherNumber = voucherNumber;
    }

    public String getVoucherNumber()
    {
        return voucherNumber;
    }
    public void setVoucherDate(Date voucherDate)
    {
        this.voucherDate = voucherDate;
    }

    public Date getVoucherDate()
    {
        return voucherDate;
    }
    public void setAccountId(Long accountId)
    {
        this.accountId = accountId;
    }

    public Long getAccountId()
    {
        return accountId;
    }
    public void setSummary(String summary)
    {
        this.summary = summary;
    }

    public String getSummary()
    {
        return summary;
    }
    public Long getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Long subjectId) {
        this.subjectId = subjectId;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }
    public void setPreparerId(Long preparerId)
    {
        this.preparerId = preparerId;
    }

    public Long getPreparerId()
    {
        return preparerId;
    }
    public void setReviewerId(Long reviewerId)
    {
        this.reviewerId = reviewerId;
    }

    public Long getReviewerId()
    {
        return reviewerId;
    }
    public void setPosterId(Long posterId)
    {
        this.posterId = posterId;
    }

    public Long getPosterId()
    {
        return posterId;
    }
    public void setDebitAmount(BigDecimal debitAmount)
    {
        this.debitAmount = debitAmount;
    }

    public BigDecimal getDebitAmount()
    {
        return debitAmount;
    }
    public void setCreditAmount(BigDecimal creditAmount)
    {
        this.creditAmount = creditAmount;
    }

    public BigDecimal getCreditAmount()
    {
        return creditAmount;
    }
    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("voucherId", getVoucherId())
            .append("voucherNumber", getVoucherNumber())
            .append("voucherDate", getVoucherDate())
            .append("accountId", getAccountId())
            .append("summary", getSummary())
            .append("subjectId", getSubjectId())
            .append("status", getStatus())
            .append("preparerId", getPreparerId())
            .append("reviewerId", getReviewerId())
            .append("posterId", getPosterId())
            .append("debitAmount", getDebitAmount())
            .append("creditAmount", getCreditAmount())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
